#pragma once

class YStorage
{
public:
	YStorage(void);
public:
	~YStorage(void);
	void SetId(int nID) { m_nID = nID; }
	int GetId() { return m_nID; }
	void SetCode(TCHAR* pCode) { _tcsncpy(m_szCode,pCode,10); }
	CString GetCode() { return m_szCode; }
	void SetName(TCHAR* pName) { _tcsncpy(m_szName,pName,20); }
	CString GetName() { return m_szName; }
	void SetLocation(TCHAR* pLocation) { _tcsncpy(m_szLocation,pLocation,50); }
	CString GetLocation() { return m_szLocation; }
	void SetMemo(TCHAR* pMemo) { _tcsncpy(m_szMemo,pMemo,50); }
	CString GetMemo() { return m_szMemo; }
protected:
	int m_nID;
	TCHAR m_szCode[11];
	TCHAR m_szName[21];
	TCHAR m_szLocation[51];
	TCHAR m_szMemo[51];
};
